package com.wwwc.index.ejb.language;

import java.util.ArrayList;
import java.util.Hashtable;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;

public interface Language extends EJBObject {
    public ArrayList getSupportedLanguageList() throws RemoteException;
    public ArrayList getAllLanguageList() throws RemoteException;
    public int tableExists(String table_name) throws RemoteException;
    public boolean dropTable(String table_name) throws RemoteException;
    public boolean createLanguageSupportTable() throws RemoteException;
    public boolean insertDefaultSupportedLanguage() throws RemoteException;
    public boolean insertDefaultLanguage() throws RemoteException;
    public boolean addLanguageTrans(String key) throws RemoteException;
    public Hashtable getLanguageHashtable(String lid) throws RemoteException;
    public Hashtable getSupportedLanguageTrans(ArrayList supported_languages) throws RemoteException;
    public int addLanguageSupport(String name) throws RemoteException;
    public int translateLanguage(String column_name, String key, String new_value) throws RemoteException;
    public int removeLanguageSupport(String name) throws RemoteException;
    public ArrayList getLanguageTransArrayList(String name) throws RemoteException;
    public String getDefaultLanguageAbbreviation() throws RemoteException;
    public boolean languageIsSupported(String lid) throws RemoteException;
    public int setDefaultLanguage(String name) throws RemoteException;
}
